from datetime import datetime
from public_act.data_act import getCurrentTime

time = 1689644831331
def time_convert(time):
    timestamp = time / 1000  # 将毫秒级时间戳转换为秒级时间戳
    dt = datetime.fromtimestamp(timestamp)
    print(dt)

time_convert(1689644092951)
time_convert(1689644831331)
time_convert(1689644864910)